package com.antdesignbackend.backend.configure.dept.service.impl;


import com.antdesignbackend.backend.configure.dept.entity.entityVo.DeptVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.configure.dept.mapper.DeptMapper;
import com.antdesignbackend.backend.configure.dept.entity.Dept;
import com.antdesignbackend.backend.configure.dept.service.DeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements DeptService {

    @Autowired
    DeptMapper deptMapper;

    @Override
    public List<DeptVo> search(QueryWrapper<DeptVo> wrapper, Page<DeptVo> page) {
        return deptMapper.search(wrapper,page);
    }
}
